import React, {Component} from 'react';
import {
    Text
} from 'react-native'
const appStoreInfo = configureStore();
import {Provider} from 'react-redux';
import configureStore from './store/configureStore';
import Main from './main';
import Util from './core/utils/util'
import {persistStore, persistCombineReducers} from 'redux-persist'
import { PersistGate } from 'redux-persist/lib/integration/react'

Util.setStore(appStoreInfo.store);

class App extends Component {
    render() {
        console.log(appStoreInfo,"---->persistor")
        return (
            <Provider store={appStoreInfo.store}>
            <PersistGate loading={null} persistor={appStoreInfo.persistor}>
                <Main/>
            </PersistGate>
            </Provider>
        );
    }
}

export default App;